//package com.santiao.youxiang.ui.activity
//
//import android.annotation.SuppressLint
//import android.app.Activity
//import android.app.DownloadManager
//import android.content.BroadcastReceiver
//import android.content.Context
//import android.content.Intent
//import android.content.IntentFilter
//import android.content.pm.PackageManager
//import android.graphics.Color
//import android.net.Uri
//import android.os.Build
//import android.os.Bundle
//import android.os.Environment
//import android.text.Spannable
//import android.text.SpannableString
//import android.text.TextPaint
//import android.text.method.LinkMovementMethod
//import android.text.style.ForegroundColorSpan
//import android.text.style.URLSpan
//import android.view.View
//import android.widget.TextView
//import android.widget.Toast
//import androidx.activity.ComponentActivity
//import androidx.annotation.RequiresApi
//import androidx.appcompat.app.AppCompatActivity
//import com.gyf.immersionbar.ImmersionBar
////import com.lazyliuzy.commonui.ui.activity.Task3Activity
//import com.santiao.youxiang.databinding.ActivityMainBinding
//import com.santiao.youxiang.databinding.ActivityTask1Binding
////import com.lazyliuzy.commonui.databinding.ActivityTask1Binding
////import com.lazyliuzy.commonui.utils.lzy.LZYADSUtils
//import kotlin.apply
////import kotlin.jvm.java
//import com.santiao.youxiang.R
//import com.santiao.youxiang.databinding.ActivityTask2Binding
//import com.santiao.youxiang.ext.thrillClickListener
//
//class Task2Activity: AppCompatActivity() {
//    private lateinit var binding: ActivityTask2Binding
////    private lateinit var lzyadsUtils: com.lazyliuzy.commonui.utils.lzy.LZYADSUtils
//var type_a=""
//    var struri=""
//    // 在类顶部定义
//    val REQUEST_STORAGE_PERMISSION = 1001  // 可以是任意唯一整数
//
//    companion object {
//        // 定义一个静态方法来创建Intent
//        // 定义一个静态方法来创建Intent并携带uri数据
//        fun startActivity(context: Context?, type: String) {
//
//            val intent = Intent(context, Task2Activity::class.java).apply {
//
//                putExtra("type", type)
//
//            }
//
//            context!!.startActivity(intent)
//        }
//
//    }
//
//    override fun onCreate(savedInstanceState: Bundle?) {
//        super.onCreate(savedInstanceState)
//        binding = ActivityTask2Binding.inflate(layoutInflater)
//        setContentView(binding?.root)
//        type_a= intent.getStringExtra("type").toString()
//        ImmersionBar.with(this)
//            .transparentStatusBar()
//            .init()
//        initViews(type_a)
//    }
//
//
//
//     fun initViews(type: String) {
//        initad()
//        binding.ivBack.setOnClickListener { onBackPressed() }
//         when(type){
//             "1"->{
////                 binding.topBar.tvTitle.text ="最低工资"
//             }
//             "2"->{
//                 binding.ivPhoto.setImageResource(R.drawable.ic_home_12)
////                 binding.topBar.tvTitle.text ="缴纳比例"
////                 binding.ivBg.setImageResource(R.drawable.ic_mk_bg2)
//             }
//             "3"->{
//                 binding.ivPhoto.setImageResource(R.drawable.ic_home_13)
////                 binding.topBar.tvTitle.text ="药品目录"
////                 binding.ivBg.setImageResource(R.drawable.ic_mk_bg3)
////                 binding.tvFile.visibility=View.VISIBLE
////                 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
////                     initV()
////                 }
//             }
////             "4"->{
////                 binding.topBar.tvTitle.text ="生育津贴"
////                 binding.ivBg.setImageResource(R.drawable.ic_mk_bg4)
////                 binding.llContent.setBackgroundColor(Color.WHITE)
////             }
//
//         }
//
//
//    }
//
//
//
//
//    fun   initad() {
////        myContext = requireContext()
////        lzyadsUtils=
////            com.lazyliuzy.commonui.utils.lzy.LZYADSUtils("Task1Activity", this@Task1Activity)
////        com.lazyliuzy.commonui.utils.lzy.LZYADSUtils.loadSimpleAd1(com.lazyliuzy.commonui.databinding.ActivityTask1Binding.flAd)
////        com.lazyliuzy.commonui.utils.lzy.LZYADSUtils.showAdCpTurn()
//
//    }
//
//}